package com.pgybook.db.entity.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DonatedBookRequestCommnetsEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DonatedBookRequestCommnetsEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDonatedbookrequestcommnetidIsNull() {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID is null");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidIsNotNull() {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID is not null");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID =", value, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidNotEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID <>", value, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidGreaterThan(Long value) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID >", value, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidGreaterThanOrEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID >=", value, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidLessThan(Long value) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID <", value, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidLessThanOrEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID <=", value, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidIn(List<Long> values) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID in", values, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidNotIn(List<Long> values) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID not in", values, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidBetween(Long value1, Long value2) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID between", value1, value2, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestcommnetidNotBetween(Long value1, Long value2) {
            addCriterion("DONATEDBOOKREQUESTCOMMNETID not between", value1, value2, "donatedbookrequestcommnetid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidIsNull() {
            addCriterion("DONATEDBOOKREQUESTID is null");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidIsNotNull() {
            addCriterion("DONATEDBOOKREQUESTID is not null");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID =", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidNotEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID <>", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidGreaterThan(Long value) {
            addCriterion("DONATEDBOOKREQUESTID >", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidGreaterThanOrEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID >=", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidLessThan(Long value) {
            addCriterion("DONATEDBOOKREQUESTID <", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidLessThanOrEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID <=", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidIn(List<Long> values) {
            addCriterion("DONATEDBOOKREQUESTID in", values, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidNotIn(List<Long> values) {
            addCriterion("DONATEDBOOKREQUESTID not in", values, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidBetween(Long value1, Long value2) {
            addCriterion("DONATEDBOOKREQUESTID between", value1, value2, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidNotBetween(Long value1, Long value2) {
            addCriterion("DONATEDBOOKREQUESTID not between", value1, value2, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andAuthortypeIsNull() {
            addCriterion("AUTHORTYPE is null");
            return (Criteria) this;
        }

        public Criteria andAuthortypeIsNotNull() {
            addCriterion("AUTHORTYPE is not null");
            return (Criteria) this;
        }

        public Criteria andAuthortypeEqualTo(Integer value) {
            addCriterion("AUTHORTYPE =", value, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeNotEqualTo(Integer value) {
            addCriterion("AUTHORTYPE <>", value, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeGreaterThan(Integer value) {
            addCriterion("AUTHORTYPE >", value, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("AUTHORTYPE >=", value, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeLessThan(Integer value) {
            addCriterion("AUTHORTYPE <", value, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeLessThanOrEqualTo(Integer value) {
            addCriterion("AUTHORTYPE <=", value, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeIn(List<Integer> values) {
            addCriterion("AUTHORTYPE in", values, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeNotIn(List<Integer> values) {
            addCriterion("AUTHORTYPE not in", values, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeBetween(Integer value1, Integer value2) {
            addCriterion("AUTHORTYPE between", value1, value2, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthortypeNotBetween(Integer value1, Integer value2) {
            addCriterion("AUTHORTYPE not between", value1, value2, "authortype");
            return (Criteria) this;
        }

        public Criteria andAuthoridIsNull() {
            addCriterion("AUTHORID is null");
            return (Criteria) this;
        }

        public Criteria andAuthoridIsNotNull() {
            addCriterion("AUTHORID is not null");
            return (Criteria) this;
        }

        public Criteria andAuthoridEqualTo(Long value) {
            addCriterion("AUTHORID =", value, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridNotEqualTo(Long value) {
            addCriterion("AUTHORID <>", value, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridGreaterThan(Long value) {
            addCriterion("AUTHORID >", value, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridGreaterThanOrEqualTo(Long value) {
            addCriterion("AUTHORID >=", value, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridLessThan(Long value) {
            addCriterion("AUTHORID <", value, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridLessThanOrEqualTo(Long value) {
            addCriterion("AUTHORID <=", value, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridIn(List<Long> values) {
            addCriterion("AUTHORID in", values, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridNotIn(List<Long> values) {
            addCriterion("AUTHORID not in", values, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridBetween(Long value1, Long value2) {
            addCriterion("AUTHORID between", value1, value2, "authorid");
            return (Criteria) this;
        }

        public Criteria andAuthoridNotBetween(Long value1, Long value2) {
            addCriterion("AUTHORID not between", value1, value2, "authorid");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("CONTENT is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("CONTENT is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("CONTENT =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("CONTENT <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("CONTENT >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("CONTENT >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("CONTENT <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("CONTENT <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("CONTENT like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("CONTENT not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("CONTENT in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("CONTENT not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("CONTENT between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("CONTENT not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNull() {
            addCriterion("CRTTIME is null");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNotNull() {
            addCriterion("CRTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCrttimeEqualTo(Date value) {
            addCriterion("CRTTIME =", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotEqualTo(Date value) {
            addCriterion("CRTTIME <>", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThan(Date value) {
            addCriterion("CRTTIME >", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CRTTIME >=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThan(Date value) {
            addCriterion("CRTTIME <", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThanOrEqualTo(Date value) {
            addCriterion("CRTTIME <=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeIn(List<Date> values) {
            addCriterion("CRTTIME in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotIn(List<Date> values) {
            addCriterion("CRTTIME not in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeBetween(Date value1, Date value2) {
            addCriterion("CRTTIME between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotBetween(Date value1, Date value2) {
            addCriterion("CRTTIME not between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andReadstatusIsNull() {
            addCriterion("READSTATUS is null");
            return (Criteria) this;
        }

        public Criteria andReadstatusIsNotNull() {
            addCriterion("READSTATUS is not null");
            return (Criteria) this;
        }

        public Criteria andReadstatusEqualTo(Integer value) {
            addCriterion("READSTATUS =", value, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusNotEqualTo(Integer value) {
            addCriterion("READSTATUS <>", value, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusGreaterThan(Integer value) {
            addCriterion("READSTATUS >", value, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("READSTATUS >=", value, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusLessThan(Integer value) {
            addCriterion("READSTATUS <", value, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusLessThanOrEqualTo(Integer value) {
            addCriterion("READSTATUS <=", value, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusIn(List<Integer> values) {
            addCriterion("READSTATUS in", values, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusNotIn(List<Integer> values) {
            addCriterion("READSTATUS not in", values, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusBetween(Integer value1, Integer value2) {
            addCriterion("READSTATUS between", value1, value2, "readstatus");
            return (Criteria) this;
        }

        public Criteria andReadstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("READSTATUS not between", value1, value2, "readstatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}